package com.tanhua.sso.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;


@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "login_info")
public class LoginInfo {
    private ObjectId id;            //主键id
    private Long pid;               //long类型的id
    private Long userId;            //用户id
    private Long createdTime;       //注册时间
    private Long loginTime;         //登录时间
    private Boolean isNew;          //是否是新用户
}
